package com.neusoft.neu24.nep.controller;

import jakarta.annotation.Resource;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/p")
@CrossOrigin("*")
public class NacosProviderController {

    @Resource
    private Environment environment;

    @RequestMapping("/hello")
    public String hello() {
        return "hello : " + environment.getProperty("server.port");
    }
}
